package s13.ch15.ex1;

import java.util.Arrays;

import s13.ch15.ex1.model.Car;

public class MyColections {

	public static void main(String[] args) {
		Car[] cars = {new Car(), new Car()};
		System.out.println(cars);
		System.out.println(cars.getClass().isArray());
		
		for (Car car : cars) {
			System.out.println(car);
		}
		
		Car[] cars1 = Arrays.copyOf(cars, cars.length + 1);
		cars1[2] = new Car();
		
		for (Car car : cars1) {
			System.out.println(car);
		}
		
		int[] ints = new int[5];
		System.out.println(ints);
		
		
	}

}
